@import '@/app/styles/variables';

.accordion {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  align-self: stretch;
  overflow: hidden;
  width: 100%;
  transition-delay: 0s;
}

.header {
  display: flex;
  align-items: center;
  gap: 16px;
  align-self: stretch;
  width: 100%;
  user-select: none;
}

.title {
  color: #000;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;
  flex: 1 0 0;
}

.body {
  width: 100%;
  color: #7d7d7d;
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: 30px;
  overflow-y: hidden;
  transition: all 0.3s cubic-bezier(0, 1, 0, 1), margin 0.2s ease-in-out;
  transition-delay: 0s;
  max-height: 0;
}

.active_item {
  transition-delay: 0s;
  margin-top: 16px;
  max-height: 10000px;
  transition: max-height 0.3s ease-in-out, margin 0.2s ease-in-out;
}

.icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;

  svg {
    transform: scale(1.2);
  }
}

.active {
  svg {
    rotate: (-0.5turn);
  }
}

@include media(sm) {
  .title {
    font-size: 16px;
    line-height: 22px;
  }

  .body {
    font-size: 16px;
    line-height: 22px;
  }
}
